import QtQuick 2.0
Item{
    width: 200;height: 200
    Image{
        id:pic1
        source:"data/1.jpg"
        sourceSize.width: 30
        sourceSize.height:30
        anchors.left: parent.left
        anchors.leftMargin:60
        anchors.top:parent.top
        anchors.topMargin: 55
        MouseArea{
            anchors.fill: parent
            onPressed: parent.opacity=0.5
            onReleased: parent.opacity=1
        }
        Text{
            anchors.centerIn: parent
            font.pointSize: 10
            text:"C"
        }
    }
    Image{
        id:pic2
        source:"data/2.jpg"
        sourceSize.width: 30
        sourceSize.height:30
        anchors.top:parent.top
        anchors.topMargin: 55
        anchors.right:parent.right
        anchors.rightMargin: 40
        MouseArea{
            anchors.fill: parent
            onPressed: parent.opacity=0.5
            onReleased: parent.opacity=1
        }
        Text{
            anchors.centerIn: parent
            font.pointSize: 10
            text:"D"
        }
    }
    Image{
        id:pic3
        source:"data/3.jpg"
        sourceSize.width: 30
        sourceSize.height:30
        anchors.left: parent.left
        anchors.leftMargin: 30
        anchors.top: pic1.bottom
        anchors.topMargin: 30
        MouseArea{
            anchors.fill: parent
            onPressed: parent.opacity=0.5
            onReleased: parent.opacity=1
        }
        Text{
            anchors.centerIn: parent
            font.pointSize: 10
            text:"A"
        }
    }
    Image{
        id:pic4
        source:"data/4.jpg"
        sourceSize.width: 30
        sourceSize.height:30
        anchors.right: parent.right
        anchors.rightMargin: 70
        anchors.top: pic2.bottom
        anchors.topMargin: 30
        MouseArea{
            anchors.fill: parent
            onPressed: parent.opacity=0.5
            onReleased: parent.opacity=1
        }

        Text{
            anchors.centerIn: parent
            font.pointSize: 10
            text:"B"
        }
    }
}
